<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>LQG</title>
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/control.js"></script>
</head>
<body>
	<form id="form1">
		<h3>权限列表</h3>
		<div>
			<ul>
				<s:iterator value="menuList" id="menu" status="u">
					<div>
						<s:property value="name" />
					</div>
					<s:iterator value="childMenuList" id="cmenu" status="v">
						<s:if test="#menu.id == #cmenu.parentId">
							<div>
								<input name="rights" type="checkbox"
									value="<s:property value="#cmenu.id" />"
									<s:iterator value="userMenuList" id="umenu" status="w"><s:if test="#umenu.id == #cmenu.id">checked="true"</s:if></s:iterator> />
								<s:property value="#cmenu.name" />

							</div>
						</s:if>
					</s:iterator>
				</s:iterator>
			</ul>
		</div>
		<div>
			<input type="button" onclick="UpdateRights('<s:property value="id" />');" value="保存" />
		</div>
	</form>
</body>
</html>